package cn.itsource.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author : 张金铭
 * @description :
 * @create :2022-11-29 09:26:00
 */
@Data
@TableName("t_product")
public class Product {
    private Long id;
    private String name;
    private String resources;
    private BigDecimal saleprice;
    private LocalDateTime offsaletime;//下架时间
    private LocalDateTime onsaletime;//上线时间
    private Long state;//状态
    private String costprice;//折扣价格
    private LocalDateTime createtime;//创建时间
    private Long salecount;//销售数量

    //描述详情
    @TableField(exist = false)
    private ProductDetail detail;

    @TableField(exist = false)
    private List<ProductComment> commentList;

}
